<!DOCTYPE html>
<html>
<head>
<?php $this->load->view('head'); ?>
</head>
<body>
<?php $this->load->view('header'); ?>
<div class="container-fluid main">
	<div class="row">
<?php $this->load->view('left'); ?>
		<div class="main-content col-md-10">
<?php $this->load->view('crumbs'); ?>
			<div class="panel panel-default panel-my">
				<div class="panel-heading">搜索</div>
				<div class="panel-body">
					<form class="form-inline" action="<?php echo site_url('admin/advert'); ?>" method="get" accept-charset="utf-8" role="form">
						<div class="form-group">
							描述：
							<input type="text" class="form-control input-sm mr5" name="descrip" value="" placeholder="描述">
						</div>
						<div class="form-group">
							广告位：
							<select class="form-control input-sm mr5" name="ckey">
								<option>1</option>
								<option>2</option>
								<option>3</option>
								<option>4</option>
								<option>5</option>
							</select>
						</div>
						<div class="form-group">
							类型：
							<select class="form-control input-sm mr5" name="type">
								<option value="">全部</option>
								<option value="txt">文字</option>
								<option value="img">图片</option>
								<option value="code">代码</option>
								<option value="flash">Flash</option>
							</select>
						</div>
						<div class="form-group">
							状态：
							<select class="form-control input-sm mr5" name="status">
								<option value="">全部</option>
								<option value="open">开启</option>
								<option value="close">关闭</option>
							</select>
						</div>
						<button type="submit" class="btn btn-primary btn-sm">搜索</button>
					</form>
				</div>
				<!--/.panel-body -->
			</div>
			<!--/.panel -->
			<div class="panel panel-default panel-my">
				<div class="panel-heading"><span class="mr10">广告管理</span><a href="<?php echo site_url('admin/link/add'); ?>" title="添加"><i class="glyphicon glyphicon-plus"></i></a></div>
				<div class="panel-body">
					<form class="form-horizontal J-ajax-form" action="<?php echo site_url('admin/link'); ?>" method="post" accept-charset="utf-8" role="form">
						<div class="table-responsive">
							<table class="table table-striped table-hover">
								<thead>
									<tr>
										<th width="70">删除</th>
										<th width="60">No.</th>								
										<th width="180">广告位</th>
										<th width="250">描述</th>
										<th width="80">类型</th>
										<th width="120">结束时间</th>
										<th width="70">排序</th>
										<th width="50">状态</th>
										<th>管理</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td><input class="J_check" type="checkbox" name="id[]" value=""></td>
									</tr>
								</tbody>
							</table>
						</div>
						<!--/.table-responsive -->
						<div class="btn-wrap">
							<button type="button" class="btn btn-primary J-ajax-submit-btn mr10">确认提交</button>
							<button type="button" class="btn btn-danger J-ajax-submit-btn mr5" data-subcheck="true" data-msg="确定要删除吗？" data-action="<?php echo site_url('admin/link/dodel'); ?>">删除</button>
						</div>
						<div class="pages">
							<?php //echo $this->pagination->create_links(); ?>
						</div>
					</form>
				</div>
				<!--/.panel-body -->
			</div>
			<!--/.panel -->
		</div>
		<!--/.main-content -->
	</div>
	<!--/.row -->
</div>
<!--/.container-fluid -->
<?php $this->load->view('footer'); ?>
</body>
</html>